import App from "../App";
import About from "../views/Page3";
import Home from "../views/Home";
import { BrowserRouter, Route, Routes, Navigate } from "react-router-dom";

const Router = () => (
    <BrowserRouter>
        <Routes>
            <Route path='/' element={<App />} >
                <Route path='/' element={<Navigate  to="/home"/>} />
                <Route path='/about' element={<About />} />
                <Route path='/home' element={<Home />} />
            </Route>
        </Routes>
    </BrowserRouter>
)
    


export default Router;